package com.gitee.lw114514;

public class Book {
    //设置属性
    private String bName; //书名
    private String bAuthor;  //作者
    private int bID;
    private int bPrice;

    public Book() {
        //空构造器
    }

    public Book(String name, String author, int ID, int price) {
        this.bName = name;
        this.bAuthor = author;
        this.bID = ID;
        this.bPrice = price;
    }

    public String getbName() {
        return bName;
    }

    public String getbAuthor() {
        return bAuthor;
    }

    public int getbID() {
        return bID;
    }

    public int getbPrice() {
        return bPrice;
    }

    public void setbName(String bName) {
        this.bName = bName;
    }

    public void setbAuthor(String bAuthor) {
        this.bAuthor = bAuthor;
    }

    public void setbID(int bID) {
        this.bID = bID;
    }

    public void setbPrice(int bPrice) {
        this.bPrice = bPrice;
    }
}
